/// @description SIUI VIEW 父对象
// You can write your code in this editor

//view类型
view_type = "view";
view_id = 0;

//是否是gui控件，设置在顶部parent
view_is_gui = true;

//view焦点，默认没有
view_focus = false;

//子view列表
view_child_list = ds_list_create();

//父view
view_parent = noone;

//view是否显示
view_show = true;

//view宽高
view_width = sprite_width;
view_height = sprite_height;
view_width_ = sprite_width;
view_height_ = sprite_height;

view_width = view_width>0?view_width:1;
view_height = view_height>0?view_height:1;

//view视图
view_surface = surface_create(view_width,view_height);

//view事件id
enum VIEW_EVE
{
	DRAW = 0,			//绘制
	RESIZE,				//改变大小
	MB_L_DOWN = 2,		//鼠标左键
	MB_L_PRES,
	MB_L_RELE,
	MB_R_DOWN = 5,		//鼠标右键
	MB_R_PRES,
	MB_R_RELE,
	MB_M_DOWN = 8,		//鼠标中键
	MB_M_PRES,
	MB_M_RELE
};

//事件返回值, 默认true
for(var i=0;i<20;i++)
{
	//是否拦截鼠标事件
	view_mb_event_inter[i] = true;
	view_event_re[i] = true;
	
	//事件对应user_event_id
	view_event_id[i] = i;
}

//鼠标事件类型
view_mb_event_type = VIEW_EVE.MB_L_DOWN;


//tap坐标存储
tap_x = 0;
tap_y = 0;

//背景色
view_clear_bkg = false;
view_bkg_color = 0x83AF9B;





